package com.bafa.front.presentationbeans;

import java.util.TreeSet;

import com.bafa.objects.season.Season;
import com.bafa.services.RetrieveServices;

public class SeasonListBean {

	private TreeSet seasons = new TreeSet();

	/**
	 * 
	 * @param scorers
	 * @param seasonId
	 * @param divisionId
	 */
	public SeasonListBean(Season[] seasons) {
		for(int i=0;i<seasons.length;i++){
			this.seasons.add(new SeasonBean(seasons[i].getName(),seasons[i].getId(),seasons[i].getYear()));
		}
	}
	
	public SeasonBean[] seasons(){
		return (SeasonBean[])seasons.toArray(new SeasonBean[seasons.size()]);
	}
	public TreeSet getSeasons() {
		return seasons;
	}

	public void setSeasons(TreeSet players) {
		this.seasons = players;
	}
	
}
